package com;


import com.service.LearnService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
        LearnService learnService = applicationContext.getBean("learnService", LearnService.class);
        learnService.one();
    }
}
